
<template>
  <projectFunds v-if="loadCompeted" />
</template>
<script>
import projectFunds from '@/views/project-funds/index.vue';
export default {
  components: {
    projectFunds
  },
  data() {
    return {
      loadCompeted: false
    }
  },
  created() {
    window.eventService.onceEvent('rpc-ready', (e) => {
      console.log("握手成功", e)
      this.loadCompeted = true
      this.init()
    })
  },
  mounted() {

  },
  beforeDestroy() {

  },
  methods: {
    init() {
      window.systemService.getServerUrl().then(url => {
        console.log(url);
        this.$store.commit('search/setUrl', url)
        this.loadCompeted = true
      });
    }
  }
}
</script>
